import request from '@/utils/request'

// 查询SKU 库位列表
export function listStockPositionSku(query) {
  return request({
    url: '/distribution/stockPositionSku/list',
    method: 'get',
    params: query
  })
}

// 查询SKU 库位详细
export function getStockPositionSku(id) {
  return request({
    url: '/distribution/stockPositionSku/' + id,
    method: 'get'
  })
}

// 新增SKU 库位
export function addStockPositionSku(data) {
  return request({
    url: '/distribution/stockPositionSku',
    method: 'post',
    data: data
  })
}

// 修改SKU 库位
export function updateStockPositionSku(data) {
  return request({
    url: '/distribution/stockPositionSku',
    method: 'put',
    data: data
  })
}

// 删除SKU 库位
export function delStockPositionSku(id) {
  return request({
    url: '/distribution/stockPositionSku/' + id,
    method: 'delete'
  })
}
